#include<stdio.h>

int main()
{
    int n;
    scanf("%d", &n);
    int m = n, base = 1;
    while(m > 9)
    {
        
        m /= 10;
        base *= 10;
    }
    while(base > 0)
    {
        printf("%d ", n / base);
        n %= base;
        base /= 10;
        
    }

    return 0;
}